package com.zhxs.nfcscan.base.dialog;

import android.content.Context;
import android.widget.ImageView;

import com.zhxs.nfcscan.R;
import com.zhhd.base.BaseDialog;

/**
 *    author : Android 轮子哥
 *    github : https://github.com/getActivity/AndroidProject
 *    time   : 2018/12/2
 *    desc   : 提示对话框
 */
public final class NetworkDialog {

    public static final class Builder
            extends BaseDialog.Builder<Builder> {

        private final ImageView mIconView;

        private int mDuration = 5000;

        public Builder(Context context) {
            super(context);
            setContentView(R.layout.network_tips_dialog);
            setAnimStyle(BaseDialog.ANIM_TOAST);
            setBackgroundDimEnabled(false);
            setCancelable(false);
            mIconView = findViewById(R.id.iv_tips_icon);
        }

        public Builder setDuration(int duration) {
            mDuration = duration;
            return this;
        }



    }
}